home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / olrdrs / qwkndt1a.zip / MAXIMUS.SCR < prev    next >
Text File  |  1992-11-06  |  2KB  |  82 lines

  1. # Sample script for logging on to a Maximus board.
  2. # replace YOURNAME and YOURPASS with your name or handle and
  3. # your password. This is only a model, and will probably need
  4. # to be modified to some degree.
  5. #
  6. timeout 10
  7. # Send a bunch of returns, sometimes necessary with HS modem
  8. send "\r\r\r\r"
  9. # Wait for name: prompt
  10. expect "ame:" "\r" 10
  11. # Send our name.
  12. send "YOURNAME\r"
  13. # Wait for name confirmation prompt.
  14. expect ",n]?" "\r" 2
  15. # Confirm. Default is "Y' so just send return.
  16. send "\r"
  17. # Wait for password prompt.
  18. expect "word:" "\r" 2
  19. # Send our password
  20. send "YOURPASS\r"
  21. # Get through intro screens by pressing return at every
  22. # "Press ENTER to continue" prompt.
  23. pausestr "NTER to continue" "\r"
  24. # Wait for "Check for mail?" prompt.
  25. expect "/N]?" "\r" 10
  26. # Don't check, we'll be downloading it anyway.
  27. send "\r"
  28. # Bump up timeout value.
  29. timeout 30
  30. # Wait for main menu prompt.
  31. expect "ect:" "\r" 2
  32. # Choose "Offline reader"
  33. send "o"
  34. # Beginning of .REP upload section. Only executed if there is a .REP
  35. # packet waiting.
  36. repbegin
  37. expect "ect:" "\r" 2
  38. # Choose "Upload"
  39. send "U"
  40. expect "ect:" "\r" 2
  41. # Choose "Zmodem"
  42. send "Z"
  43. # Wait a few seconds for Zmodem to fire up.
  44. sleep 4
  45. # Upload the .REP packet
  46. upload
  47. # End of .REP upload section
  48. repend
  49. expect "ect:" "\r" 2
  50. # Choose "Download"
  51. send "D"
  52. # Go through several prompts, choosing default each time.
  53. expect "ect:" "\r" 2
  54. send "\r"
  55. expect "ect:" "\r" 2
  56. send "\r"
  57. expect "ect:" "\r" 2
  58. # Choose "Pack in .QWK format"
  59. send "p"
  60. # Wait for "Download this packet" prompt.
  61. expect ",n]?"
  62. # Yes, send it.
  63. send "Y"
  64. # Wait for protocol prompt.
  65. expect "ect:" "\r" 2
  66. # Choose "D" (DSZ Moby Turbo on this particular board)
  67. send "D"
  68. # Wait a few seconds for Zmodem to fire up.
  69. sleep 4
  70. # Download it!
  71. download
  72. # Wait for prompt.
  73. expect "ect:" "\r" 2
  74. # Goodbye!
  75. send "G"
  76. expect "elp]" "\r" 2
  77. # Yes, we're sure.
  78. send "\r"
  79. expect "elp]" "\r" 2
  80. # No, we don't want to leave feedback.
  81. send "\r"
  82.